import request from '@/utils/request'

// 查询客户对应技术员列表
export function listCustomerinfouserjs(query) {
  return request({
    url: '/CustomerinfoMain/customerinfouserjs/list',
    method: 'get',
    params: query
  })
}

// 查询客户对应技术员详细
export function getCustomerinfouserjs(userId) {
  return request({
    url: '/CustomerinfoMain/customerinfouserjs/' + userId,
    method: 'get'
  })
}

// 新增客户对应技术员
export function addCustomerinfouserjs(data) {
  return request({
    url: '/CustomerinfoMain/customerinfouserjs',
    method: 'post',
    data: data
  })
}

// 修改客户对应技术员
export function updateCustomerinfouserjs(data) {
  return request({
    url: '/CustomerinfoMain/customerinfouserjs',
    method: 'put',
    data: data
  })
}

// 删除客户对应技术员
export function delCustomerinfouserjs(userId) {
  return request({
    url: '/CustomerinfoMain/customerinfouserjs/' + userId,
    method: 'delete'
  })
}
